using System;
using System.Collections.Generic;
using System.Text;
using Ent.Log;
using System.Configuration;
using System.Web;

namespace Ent.Web
{
    public class Common
    {
        public static Logger Log
        {
            get
            {
                Logtype type = (Logtype)Enum.Parse(typeof(Logtype), ConfigurationManager.AppSettings["LogLevel"]);
                string logPath = ConfigurationManager.AppSettings["LogPath"];
                return Logger.GetLogger(HttpRuntime.AppDomainAppPath + "/" + logPath, "default", type);
            }
        }
    }
}
